package com.neiquan.secondhand.po;

import com.neiquan.backstage.core.PO;
import com.neiquan.backstage.core.bsc.CRUD;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.security.KeyStore;
import java.util.Date;

/**
 * 文件表
 *  chenjunnan 
 *  2016/7/21.
 */
@Entity
@org.hibernate.annotations.Entity(selectBeforeUpdate = true, dynamicUpdate = true)
@Table(name = "sh_file_resource")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@CRUD
public class FileResource extends PO  {
	 @Override
	    public Serializable getId() {
	        return null;
	    }
    @Id
    @GeneratedValue(generator = "generator")
    @GenericGenerator(name = "generator", strategy = "uuid.hex")
    
    @Column(name = "id", unique = true, nullable = false)
    private String id;//主键
    
    @Column(name = "file_url", length=200)
    private String fileUrl;//
    
    @Column(name = "flag", length=500)
    private String flag;//
    

    @Column(name = "create_time")
    private  Long createTime;//创建时间


	public String getFileUrl() {
		return fileUrl;
	}


	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}


	public String getFlag() {
		return flag;
	}


	public void setFlag(String flag) {
		this.flag = flag;
	}


	public Long getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}


	public void setId(String id) {
		this.id = id;
	}


	
   

}
